import { Entity, Column, PrimaryGeneratedColumn } from 'typeorm';

@Entity()
export class User {
  @PrimaryGeneratedColumn()
  userId: number;

  @Column()
  username: string;

  @Column()
  alias: string;

  @Column()
  password: string;

  /**
   * 性别
   */
  @Column()
  sex: string;

  /**
   * 头像
   */
  @Column()
  avatar: string;

  /**
   * 角色
   */
  @Column()
  role: number;

  @Column({ default: true })
  isActive: boolean;
}
